import java.util.Calendar;
import java.util.Date;


public class Request implements Comparable
{
   private int seats; 
   private int roomNum;  
   private String event;
   private String name;
   private int duration;
   private Calendar date;
   private int startingtime;
   
   public Request(String name, String event,Calendar date,int startingtime, int aduration, int seats) 
   {
      this.name = name;
      this.event = event;
      this.date = date;
      this.duration = aduration;
      this.seats = seats;
      this.startingtime = startingtime;
   }
   public String getEvent()
   {
      return event;
   }
   public Calendar getDate()
   {
      return date;
   }
   public int getDuration()
   {
      return duration;
   }
   public int getSeats()
   {
      return seats;
   }
   public String getName()
   {
      return name;
   }
   public int getRoomNum()
   {
      return roomNum;
   }
   
   public String toString()
   {
      return name+";"+event+";"+date.get(Calendar.YEAR)+";"+date.get(Calendar.MONTH)+";"+date.get(Calendar.DAY_OF_MONTH)
         + ";"+this.startingtime+";"+this.duration+";"+this.seats;
   }
   public int compareTo(Object o)
   {
      if(!(o instanceof Request))
         throw new ClassCastException("Request Object expected.");
      
      Request aRequest = (Request)o;
      
      
      return 0;
   }
   
}
